package com.codesuc.aichat.config;

import cn.dev33.satoken.jwt.StpLogicJwtForSimple;
import cn.dev33.satoken.stp.StpLogic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description Sa-Token 配置类
 * @Author Mr.Zhang
 * @Date 2025/8/5 21:37
 * @Version 1.0
 */
@Configuration
public class SaTokenConfig {

    /**
     *  整合 JWT
     */
    @Bean
    public StpLogic getStpLogicJwt() {
        return new StpLogicJwtForSimple();
    }
}
